<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 	<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
	<title> Web rezervacije</title>
</head>

<f:view>
  <h1>Prijavljivanje</h1>
  
  <ui:param name="user" value="#{sessionScope['user']}" />
  <h:outputLabel rendered="#{user eq 'nePostoji'}">
  	<h3><h:outputText value="Korisnicko ime ne postoji" /></h3>
  </h:outputLabel>
	  
	<form method="post" action="LogInServlet">  
	<table border="0">
    	<tr>
    		<td>Unesite korisnicko ime:</td>
    		<td><input type="text" name="username"/></td>
    	</tr>
    	<tr>
     		<td> &nbsp; </td>
      		<td><input type="submit" value="Prijavi se"/></td>
    	</tr>
    </table>
	</form>  
  <p> <a href="registracija.faces">Registracija</a> </p>

</f:view>

</html>